10#import <CoreBluetooth/CoreBluetooth.h>
14@interface CommPortBLE : CommPort
26 enum CommPortStatus commPortStatusBLE;
37 NSMutableArray *iplistArrayBLE;
38 NSMutableData* dataRXBLE;
41 Boolean bDisconnected;
42 Boolean bDiscServices;
43 Boolean bDiscCharacteristicsForService;
45 Boolean bNotification;
48 CBCentralManager *centralManager;
49 CBPeripheralManager *peripheralManager;
50 CBPeripheral *blePeripheral;
53 CBCharacteristic *bleTx;
54 CBCharacteristic *bleRx;
62- (NSArray *) EnumBLEDevices:(NSInteger)searchTimeout :(NSError**)error;
63- (int) BluetoothLowEnergyConnect:(CBPeripheral *)bleperipheral :(NSError**)error;
65- (void) BleConnect:(CBPeripheral *)bleperipheral :(NSError**)error;
67- (void) BLEDisconnect:(NSError**)error;
68- (void) BLEWrite:(NSData *)data :(NSError**)error;
69- (void) BLEWrite:(const uint8_t *)buf :(
int)length :(NSError**)error;
70- (NSData *) BLERead:(NSInteger)rxBufferSize :(NSError**)error;